<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	pageContext.setAttribute("path", path);
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人信息</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<!--theme-style-->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />	
<!--//theme-style-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Wedding Store Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- start menu -->
<script src="js/simpleCart.min.js"> </script>
<!-- start menu -->
<link href="css/memenu.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/memenu.js"></script>
<script>$(document).ready(function(){$(".memenu").memenu();});</script>	
<!-- /start menu -->
<script type="text/javascript">
	$(function(){
		var message = $("#message").val();
		if (message != null && message != "") {
			alert(message);
			$("#message").val("");
		}
	})
</script>
</head>
<body> 
	<jsp:include page="../common/header.jsp"></jsp:include>
	<input type="hidden" id="message" value="${message }">
<!---->
<div class="contact">
	  <div class="container">
		 <ol class="breadcrumb">
		  <jsp:include page="../common/first.jsp"></jsp:include>
		  <li class="active">个人信息</li>
		 </ol>
			<!---start-contact---->
			<h3>个人信息</h3>
		  <div class="section group">				
				<div class="col-md-6 span_1_of_3" style="width: 50%;">
					<div class="contact-form">
			    	 	<h4>学生证</h4>
			    	 		<div class="map">
			    	 			<c:choose>
			    	 				<c:when test="${sessionScope.teacher.tea_student_card eq null or sessionScope.teacher.tea_student_card eq ''}">
			    	 					<img title="我不管我最美" src="images/student_card.jpg" style="width: 250px" height="250px">
			    	 				</c:when>
			    	 				<c:otherwise>
			    	 					<img title="我不管我最美" src="/upload/${sessionScope.teacher.tea_student_card }" style="width: 250px" height="250px">
			    	 				</c:otherwise>
			    	 			</c:choose>
					   		</div>
					   		<form action="teacher/uploadTeacher" method="post" enctype="multipart/form-data">
					   			<input name="tea_id" type="hidden" value="${sessionScope.teacher.tea_id }">
					   			<input name="tea_student_card_t" type="file" required>
					   			<input type="submit" value="上传学生证">
					   		</form>
      				</div>
				</div>	
				<div class="col-md-6 span_2_of_3" style="width: 50%;">
				    <div class="contact-form">	
				    	<h4>身份证</h4>
			    	 		<div class="map" >
			    	 			<c:choose>
			    	 				<c:when test="${sessionScope.teacher.tea_identity_card eq null or sessionScope.teacher.tea_identity_card eq ''}">
			    	 					<img title="我不管我最美" src="images/identifiy_card.jpg" style="width: 250px" height="250px">
			    	 				</c:when>
			    	 				<c:otherwise>
			    	 					<img title="我不管我最美" src="/upload/${sessionScope.teacher.tea_identity_card }" style="width: 250px" height="250px">
			    	 				</c:otherwise>
			    	 			</c:choose>
					   		</div>
					   		<form action="teacher/uploadTeacher" method="post" enctype="multipart/form-data">
					   			<input name="tea_id" type="hidden" value="${sessionScope.teacher.tea_id }">
					   			<input name="tea_identity_card_t" type="file" required>
					   			<input type="submit" value="上传身份证">
					   		</form>
				    </div>
				</div>		
		  </div>
		  
	  </div>
 </div>
<!-- footer  -->
<jsp:include page="../common/footer.jsp"></jsp:include>
</body>
</html>